//
//  MBSongDetailForIController.h
//  MiBaoTu
//
//  Created by mac004 on 2016/10/12.
//  Copyright © 2016年 com.caesartech15. All rights reserved.
//

#import "MBBaseController.h"
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import "Music.h"
#import "RightViewController.h"
#import "DXSemiViewControllerCategory.h"
typedef enum {
    IdentityType_online = 0,//在线电台
    IdentityType_hot ,//人气主播
    IdentityType_son,//亲子秀
    IdentityType_listen,//大家都在听

    
}IdentityType;


@interface MBSongDetailForIController : MBBaseController<UITableViewDataSource, UITableViewDelegate,AVAudioPlayerDelegate>
{
    AVPlayer *audioPlayer;
    NSMutableArray *musicArray;
    BOOL isPlay;
    BOOL isCircle;
    BOOL musicTableViewHidden;
    float tempVolume;
    Music *currentMusic;
    NSMutableArray *timeArray;
    NSMutableDictionary *LRCDictionary;
    NSUInteger lrcLineNumber;
    NSUInteger musicArrayNumber;
    

}
@property (nonatomic,assign)BOOL isFromOnLine; //是否从在线电台跳转
@property (nonatomic,strong)NSMutableArray         *dataAllArr;//当前歌曲列表
@property (nonatomic,strong)NSMutableDictionary *dateDic;//基本数据源
@property (nonatomic ,assign)BOOL isParise;//是否点赞
@property (nonatomic,assign)BOOL isCollect;//是否收藏
@property(nonatomic,assign)IdentityType type;//跳转类型
@property (nonatomic, strong) NSMutableArray *musicArray;
@property (strong, nonatomic)  UIButton *aboveBtn;//播放/暂停按钮
@property (strong, nonatomic)  UIButton *nextBtn;//播放/暂停按钮
- (void)aboveMusic:(UIButton*)sender;//上一首
- (void)nextMusic:(UIButton*)sender;//下一首

- (void)play:(UIButton*)sender;//播放
@property (strong, nonatomic)  UIButton *playBtn;//播放/暂停按钮

@property (strong, nonatomic)  UISlider *progressSlider;//歌曲时间进度条
- (void)progressChange:(id)sender;//进度条拖动按钮


- (IBAction)circle:(id)sender;
@property (strong, nonatomic) IBOutlet UIButton *circleBtn;

@property (strong, nonatomic)  UILabel *songName;//歌名
@property (strong, nonatomic)  UILabel *singer;
//歌手

@property (strong, nonatomic)  UILabel *currentTimeLabel;//当前播放时间
@property (strong, nonatomic)  UILabel *totalTimeLabel;//歌曲总时间

@property (strong, nonatomic)  UITableView *musicTableView;//歌词表格

@property (strong, nonatomic) UITableView *lrcTableView;
//显示歌曲目录

@property (nonatomic,copy)NSString               *selectMusicID; //初次进入时音频ID 区分2次进入


- (void)playTable:(NSUInteger)tableNumber;

@end
